package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 记录单规格商品的价格和划线价
 * @TableName tb_price
 */
@TableName(value ="tb_price")
@Data
public class Price extends Object implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 外键商品编号
     */
    @TableField(value = "gid")
    private Long gid;

    /**
     * 划线价格
     */
    @TableField(value = "crossed_price")
    private BigDecimal crossedPrice;

    /**
     * 实际价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 逻辑删除是否可用(0.不可用 1.可用)
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}